package com.hiecho;

import com.intellij.notification.*;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;

import java.time.Instant;

public class AlertMessage extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        // TODO: insert action logic here
        NotificationGroup group = new NotificationGroup("teeetddddd", NotificationDisplayType.BALLOON, false);
        Notification notification = group.createNotification("测试通知", NotificationType.WARNING);
        Notifications.Bus.notify(notification);
        System.out.println("---------------------"+ Instant.now());
    }
}
